
import mutations from './mutations'
import actions from './actions'

export default {
	namespaced:true,
	state:{
		list:[],
		total:null,
		current:1,
		maxPage:null,	
	},
	getters:{
		searchGradeById(state){
			return (id)=>{
				return state.list.find(v=>v.id===id);  // 对应id查找数据 -> 被查找的数据(对象 -> 引用类型)
			}
		}

	},
	mutations,
	actions
}
